Skip to content

Generalize spotlight activity scripts to support any process - #43

Merged
technicalpickles merged 2 commits into
mainfrom
fs-activity-monitor
Sep 24, 2026
Merged

technicalpickles merged 2 commits into
mainfrom
fs-activity-monitor

Conversation

@technicalpickles

Copy link
Copy Markdown
Owner

Summary

  • Generalize spotlight-analyze-activity / spotlight-monitor-live into proc-analyze-activity / proc-monitor-live, since the underlying fs_usage approach isn't Spotlight-specific
  • Add opendirectoryd and falcon (CrowdStrike) presets alongside spotlight, selectable via -p/--preset; -f/--pattern still takes a raw process pattern for anything else
  • Old positional args ([duration] [pattern]) still work, so existing muscle memory and any saved commands keep working

Test plan

  • Ran both scripts against all three presets locally, including a live 10s capture against com.crowdstrike.falcon.Agent and opendirectoryd
  • npm run format:check passes

🤖 Generated with Claude Code

…-monitor-live

Add opendirectoryd and CrowdStrike Falcon presets alongside spotlight,
since the underlying fs_usage-based approach works for any process.
Under set -o pipefail, head closing its stdin early after N lines
sends SIGPIPE upstream, and bash reports that as the pipeline's exit
status even though the final command (awk) exits 0. Never showed at
Spotlight-scale (short captures, low volume) but a 120s Falcon capture
tripped it every time, killing the script right after the first
section.
@technicalpickles
technicalpickles merged commit e975c23 into main Sep 24, 2026
1 check passed
@technicalpickles
technicalpickles deleted the fs-activity-monitor branch September 24, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant